AMD/IOMMU: correct handling when XT's prereq features are unavailable
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Feb 2020 15:25:43 +0000 (16:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Feb 2020 15:25:43 +0000 (16:25 +0100)
commit9649cef3b3a7eaca1347154ea7f274586d48bc29
tree5a7c53883a355c5e30a924976a917d9fa7ba7c2e
parent4d901aa67a2005c61f6057f5f6b59c17269d9456
AMD/IOMMU: correct handling when XT's prereq features are unavailable

We should neither cause IOMMU initialization as a whole to fail in this
case (we should still be able to bring up the system in non-x2APIC or
x2APIC physical mode), nor should the remainder of the function be
skipped (as the main part of it won't get entered a 2nd time) in such an
event. It is merely necessary for the function to indicate to the caller
(iov_supports_xt()) that setup failed as far as x2APIC is concerned.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/drivers/passthrough/amd/iommu_init.c